namespace ScrumSprintMonitor.ServerAdapter.TFS.TemplateAdaptors
{
	#region #using Directives

	using Isolation.TeamFoundationServer;

	#endregion

	public class FaroConchangoScrumWorkItemAdapter : ConchangoScrumWorkItemAdapter
	{
		public FaroConchangoScrumWorkItemAdapter(IWorkItem workItem)
			: base(workItem)
		{
		}

		protected override void RetrieveDoneWork()
		{
			var actualWork = (WorkItem.HasField("FARO.ActualWork") ? WorkItem["FARO.ActualWork"] : null);
			DoneWork = (actualWork != null ? (double) actualWork : 0.0);
		}
	}
}